<%--
  Created by IntelliJ IDEA.
  User: Wonderming
  Date: 2018/4/16
  Time: 13:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<link type="text/css" rel="stylesheet" href="css/common/common.css"/>

<div class="animated fadeInRight">
    <div class="wrapper wrapper-content ng-scope">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>{{ 'BUSINESS' | translate }}</h5>
                    </div>

                    <div class="ibox-content sk-loading" ng-controller="riskBusinessCtrl">
                        <div class="sk-spinner sk-spinner-wave">
                            <div class="sk-rect1"></div>
                            <div class="sk-rect2"></div>
                            <div class="sk-rect3"></div>
                            <div class="sk-rect4"></div>
                            <div class="sk-rect5"></div>
                        </div>

                        <form name="myform" serializer="searchBlackcard(data)">
                            <div class="row">
                                <!--卡种-->
                                <div class="col-sm-6 col-md-4 col-lg-1-5">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <span class="input-group-addon">卡种：</span>
                                            <select id="business_card" class="form-control" ng-model="Business.refcreditName ">
                                                <option value=""></option>
                                                <option ng-repeat="x in init.credit" value="{{ x.name }}">
                                                    {{ x.name }}
                                                </option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <!--起始卡号-->
                                <div class="col-sm-6 col-md-4 col-lg-1-5">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <span class="input-group-addon">起始卡号：</span>
                                            <input type="text" id="startcard" class="form-control" ng-model="Business.startNo">
                                        </div>
                                    </div>
                                </div>
                                <!--结束卡号-->
                                <div class="col-sm-6 col-md-4 col-lg-1-5">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <span class="input-group-addon">结束卡号：</span>
                                            <input type="text" id="overcard" class="form-control" ng-model="Business.endNo">
                                        </div>
                                    </div>
                                </div>
                                <!--创建人-->
                                <div class="col-sm-6 col-md-4 col-lg-1-5">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <span class="input-group-addon">创建人：</span>
                                            <input type="text" id="founder" class="form-control" ng-model="Business.creator">
                                        </div>
                                    </div>
                                </div>
                                <!--最后修改人-->
                                <div class="col-sm-6 col-md-4 col-lg-1-5">
                                    <div class="form-group form-group-sm">
                                        <div class="input-group">
                                            <span class="input-group-addon">最后修改人：</span>
                                            <input type="text" id="modifier" class="form-control" ng-model="Business.modifier">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6 col-md-6 col-lg-3 col-lg-offset-3">
                                    <button  type="submit" class="btn btn-sm btn-w-m btn-primary pull-right" ng-click="search(Business)">
                                        查询
                                    </button>
                                </div>
                                <div class="col-sm-6 col-md-6 col-lg-3">
                                    <button class="btn btn-sm btn-w-m btn-info" ng-click="resetForm()">
                                        重置
                                    </button>
                                </div>
                            </div>


                            <div class="hr-line-dashed"></div>

                            <button  type="button"  class="btn btn-sm  btn-primary" ng-click="showModal(row,0)">新增</button>

                            <div class="table-responsive">
                                <table ng-table="BusinessTable" class="table table-condensed table-striped table-hover table-bordered">
                                    <tr ng-repeat="row in $data">
                                        <td class="text-center" style="line-height: 2" data-title="''">
                                            <input type="checkbox" id="businessCheckBoxID" ng-model="businessCheckBox" ng-click="collectSelectRows($event,row.id)"/>
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'起始卡号'">
                                             {{ row.startNo}}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'结束卡号'">
                                             {{ row.endNo}}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'卡种'">
                                             {{ row.refcreditName }}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'创建人'">
                                             {{ row.creator }}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'创建时间'">
                                             {{ row.createTime | date: 'yyyy-MM-dd hh:mm:ss' }}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'最后修改人'">
                                             {{ row.modifier }}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'修改时间'">
                                             {{ row.modifyTime | date: 'yyyy-MM-dd hh:mm:ss' }}
                                        </td>

                                        <td class="text-center" style="line-height: 2" data-title="'备注'">
                                             {{ row.remark }}
                                        </td>

                                        <td class="text-center" style="line-height: 2;max-width: 100px;" data-title="'操作'">
                                             <businessrisk-locked></businessrisk-locked>
                                        </td>

                                    </tr>
                                </table>
                            </div>
                            <my-pagination table-param="BusinessTable"></my-pagination>
                            <button class="btn btn-sm btn-primary del-btn marginTop-minus" ng-click="batchDel()" ng-disabled="deleteFlag">删除</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

